package routers

import (
	"github.com/astaxie/beego"
	"github.com/zd04/beego-admin/controllers"
)

func init() {
	beego.Router("/", &controllers.MainController{})

	/*自动路由模式*/
	beego.AutoRouter(&controllers.LoginController{})

	/*RESTful 路由模式*/
	beego.Router("/user", &controllers.UserController{})

	/*使用注解路由模式的*/
	beego.Include(&controllers.ProductController{})

	beego.AutoRouter(&controllers.TestController{})
}
